/**
 * 
 */
package com.suyx.job.enums;

/**
 * @author syx
 *
 */
public enum SectEnums {

	/**
     * 大唐
     */
    DT("dt"),
    SM("sm"),
    HS("hs"),
    DF("df"),
    DYMG("dymg"),
    LB("lb"),
    PT("pt"),
    WZ("wz"),
    DTJW2("dtjw2"),
    PS("ps"),
    
    TG("tg"),
    YG("yg"),
    FC("fc"),
    
    NE("ne"),
    HG("hg"),
    HDMG2("hdmg2"),
    HDMG3("hdmg3"),
    NB("nb"),
    LG("lg"),
    
    WD("wd"),
    
    ST("st"),
    MW("mw"),
    TJ("tj"),
    
    DHW("dhw"),
    CC("cc"),
    JYC("jyc"),
    AL("al"),
    AL2("al2"),
    CA3("ca3"),
    CA4("ca4"),
    CA5("ca5"),
    CS("cs"),
    CS1("cs1"),
    CS2("cs2"),
    ZZG("zzg"),
    CSJW("csjw"),
    BJLZ("bjlz"),
    FC1("fc1"),
    LK2("lk2"),
    JNYW("jnyw"),
    DTGJ("dtgj"),
    DTJW("dtjw"),
    HGS("hgs"),
    MJC("mjc"),
    QLS("qls")
    ;

    private String code;

    SectEnums(String code) {
        this.code = code;
    }

    public static SectEnums getInstance(String code) throws Exception{
        for( SectEnums enums: SectEnums.values() ){
            if( enums.code.equalsIgnoreCase(code) ){
                return enums;
            }
        }
        throw new Exception("SectEnums0002");
    }

    public String getCode() {
        return code;
    }

}
